package com.bootdo.appsystem.service;

import com.bootdo.app.utils.returnresponse.ServerResponse;
import com.bootdo.appsystem.domain.ShipaddressDO;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author xiaoxiao
 * @email 806191255@qq.com
 * @date 2018-05-12 14:42:14
 */
public interface ShipaddressService {
	
	ShipaddressDO get(Integer shipid);
	
	List<ShipaddressDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(ShipaddressDO shipaddress);
	
	int update(ShipaddressDO shipaddress);
	
	int remove(Integer shipid);
	
	int batchRemove(Integer[] shipids);

	ShipaddressDO getUserDefault(Integer uid , Integer isdefault);

	/**
	 * 更新用户所有地址的状态为0
	 * @param uid 用户id
	 * @return
	 */
	ServerResponse updateOtherDefault(Integer uid);
}
